package com.huqing.icu.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.sql.Timestamp;

/**
 * @Description 用户评论点赞表
 * @Author huqing
 * @Date 2025/1/9 14:47
 **/
@TableName(value = "user_comment_like")
@Data
public class UserCommentLike {

    /**
     * 主键ID
     */
    @TableId("id")
    private Long id;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 评论ID
     */
    @TableField("comment_id")
    private Long commentId;

    /**
     * 删除状态，0-未删除 1-已删除 逻辑删除
     *
     * @see com.huqing.icu.enums.DeleteStatusEnum
     */
    @TableLogic("is_deleted")
    private Integer isDeleted;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Timestamp createTime;

    /**
     * 修改时间
     */
    @TableField("modify_time")
    private Timestamp modifyTime;

    public UserCommentLike(Long userId, Long commentId) {
        this.userId = userId;
        this.commentId = commentId;
    }
}
